#pragma once

#include "IResultSetMetaData.h"

LIBDBC_BEGIN_NAMESPACE

class SqlResult;

class LIBDBC_API ResultSetMetaData :public IResultSetMetaData
{
public:
	ResultSetMetaData(SqlResult * pRes);
	virtual ~ResultSetMetaData();

	virtual unsigned int getFieldCount();
	virtual char* getFieldName(int field, char* buffer, int len);
	virtual const char* getFieldTypeName(int field);
	virtual DBCFieldType getFieldType(int field);

protected:
	SqlResult *_result;
};


LIBDBC_END_NAMESPACE